package com.easy.cms.material.service;

import com.easy.cms.material.model.Material;
import com.easy.cms.material.model.MaterialQuery;
import com.easy.cms.base.CommonResult;
import org.springframework.data.domain.Page;
import java.util.Iterator;
import java.util.List;

public interface MaterialService {
    CommonResult<Iterator<Material>> getMaterialList();
    CommonResult<List<Material>> searchMaterials(String code, String name);
    CommonResult<Material> addMaterial(Material material);
    CommonResult<Material> updateMaterial(Material material);
    CommonResult<Page<Material>> getMaterialListPage(MaterialQuery materialQueryWithPagination);
    CommonResult<?> deleteMaterial(Long id);
}